﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Web;
using XRM.Security.DataAccess.Interfaces;

namespace XRM.Security.WebUI.Models.CertRegister
{
    public class CertRegisterEditModel : BaseViewModel, ICertStatus
    {
        public CertRegisterEditModel()
        {   
        }

        public CertRegisterEditModel(X509Certificate2 certificate)
        {
            /*FromDate = userCert.NotBefore,
                    ToDate = userCert.NotAfter,
                    SerialNumber = userCert.SerialNumber,
                    DataId = dataId,
                    IdentityCenterName = userCert.GetIssuerOrganizationName(),
                    CertificateUserName = userCert.GetNameInfo(X509NameType.SimpleName, false)*/
        }

        public DateTime ToDate { get; private set; }
        public int UserStatus { get; private set; }
    }
}